package com.example.patentback.service.impl;

import com.example.patentback.dao.FeeMapper;
import com.example.patentback.entity.Fee;
import com.example.patentback.service.FeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

@Service
public class FeeServiceImpl implements FeeService {
    @Autowired
    FeeMapper feeMapper;

    @Override
    public Fee selectById(Long id) {
        Example example = new Example(Fee.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("id",id);
        return feeMapper.selectByExample(example).get(0);
    }
}
